package com.niguang.work.labour.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author 83673
 * @since 2018-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("work_site_modify")
public class SiteModify extends Model<SiteModify> {

    public static final String ID = "id";
    public static final String USER_ID = "user_id";
    public static final String TEAM_ID = "team_id";
    public static final String SALARY = "salary";
    public static final String PAY_WAY = "pay_way";
    public static final String START_TIME = "start_time";
    public static final String END_TIME = "end_time";
    public static final String CREATE_TIME = "create_time";
    public static final String UPDATE_TIME = "update_time";
    private static final long serialVersionUID = 1L;
    private Long id;
    private Long userId;
    private Long teamId;
        /**
     * 金额
     */
         private BigDecimal salary;
        /**
     * 计薪方式 1-点工 2-包工 3-月薪
     */
         private Integer payWay;
    private LocalDate startTime;
    private LocalDate endTime;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
